<?php
error_reporting(0);
include 'admin/conn.php';

$fname =  $_REQUEST["fname"];
$lname =  $_REQUEST["lname"];
$address = $_REQUEST["address"];
$city = $_REQUEST["city"];
$province = $_REQUEST["province"];
$postalcode=$_REQUEST["postalcode"];
$postalcode=$_REQUEST["postalcode"];
$phone=$_REQUEST["phone"];
$email=$_REQUEST["email"];
$servicedate=$_REQUEST["servicedate"];
$servicerequested=$_REQUEST["servicerequested"];

$sqlDonate = "INSERT INTO tbl_donate_data (fname, address, address2, city, zipcode, phone, email, scrap, charity, is_answered)
VALUES ('".addslashes($fname)."',
'".addslashes($address)."','".addslashes($address2)."','".addslashes($city)."',
'".addslashes($zipcode)."','".addslashes($phone)."','".addslashes($email)."',
'".addslashes($scrap)."','".addslashes($charity)."','N')";



$run = mysql_query($sqlDonate);

if($run)
{
	header("Location:donate.php?msg=success");
}
else
{
	header("Location:donate.php?msg=failure");
}
?>